<!DOCTYPE html>
<html>
<head>
  <title>TalesOfEldeth</title>
  <%= stylesheet_link_tag :all %>
  <%= javascript_include_tag :defaults %>
  <%= csrf_meta_tag %>
  <%= stylesheet_link_tag "application" %>
</head>
<body>


  <div id="user_nav">
    <%if current_user%>
       Logged in as <%=current_user.forename%> <%=current_user.lastname%>
       <%=link_to "Log out", log_out_path%>
    <%else%>
       <%=link_to "Log in", log_in_path%> or
       <%=link_to "Register", sign_up_path%>
    <%end%>
  </div>


  <%flash.each do |name,msg|%>
    <%= content_tag :div, msg, :id => "flash_#{name}" %>
  <%end%>
  
  <%= yield %>

</body>
</html>
